//
//  UserInit.swift
//  SwiftSign
//
//  Created by continue on 2021/4/26.
//

import Foundation
import ObjectMapper


struct UserInitInfo: Mappable {

    var showPrivacy: Int?
    var isReview: Int?
    var realnameGiftIMG: String?

    init?(map: Map) {}
    init() {}
    
    mutating func mapping(map: Map) {
        showPrivacy <- (map["show_privacy"],
                        TransformOf<Int, String>(fromJSON: { Int($0!) },
                                                 toJSON: { $0.map { String($0) } }))
        isReview <- map["is_review"]
        realnameGiftIMG <- map["realname_gift_img"]
    }
}

//struct UserInit: Decodable {
//    let data: UserInitInfo
//    let state: Int?
//
//    enum CodingKeys: String, CodingKey {
//        case state
//        case data
//    }
//}
//
//
//struct UserInitInfo: Decodable {
//
//    let isShowSdkAge: Int?
//    let sdkAgeAdaptationContent: String?
//    let isReview: Int?
//    let sdkAgeAdaptationIcon: String?
//    let showPrivacy: Int?
//
//    enum CodingKeys: String, CodingKey {
//        case isShowSdkAge = "isShowSdkAge"
//        case sdkAgeAdaptationContent
//        case isReview = "is_review"
//        case sdkAgeAdaptationIcon
//        case showPrivacy = "show_privacy"
//    }
//
//}
